#include"Request.h"

Request::Request() :url("") {}

Request::Request(string _url, map<string, string, cpr::CaseInsensitiveCompare> _map) :header(_map) {

	url = Url{ _url };
}

// Get methods
Response Request::get() {
	Response res = cpr::Get(url,header);
	return res;
}

Response Request::post() {
	Response res = cpr::Post(url, header);
	return res;
}

Response Request::put() {
	Response res = cpr::Put(url, header);
	return res;
}

Response Request::deleted() {
	Response res = cpr::Delete(url, header);
	return res;
}
